package com.authine.cloudpivot.ext.dto;

import com.authine.mvp.app.launcher.dto.bo.query.expression.Condition;
import com.authine.mvp.app.launcher.dto.bo.query.expression.ExpressionDeserializer;
import com.fasterxml.jackson.databind.annotation.JsonDeserialize;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;
import lombok.ToString;

@Schema(description = "BaseQueryDto")
@Data
@ToString
public class BaseQueryDto {

    @Schema(description = "分页每页显示条数")
    private Integer pageSize;

    @Schema(description = "分页页码")
    private Integer pageIndex;

    @Schema(description = "过滤条件")
    @JsonDeserialize(using = ExpressionDeserializer.class)
    private Condition condition;

    @Schema(description = "模型编码")
    private String schemaCode;
}
